import request from '@/utils/request'

// 查询预警值设置列表
export function listEarly(query) {
  return request({
    url: '/xiaocui/early/list',
    method: 'get',
    params: query
  })
}

// 查询预警值设置详细
export function getEarly(warningId) {
  return request({
    url: '/xiaocui/early/' + warningId,
    method: 'get'
  })
}

// 新增预警值设置
export function addEarly(data) {
  return request({
    url: '/xiaocui/early',
    method: 'post',
    data: data
  })
}

// 修改预警值设置
export function updateEarly(data) {
  return request({
    url: '/xiaocui/early',
    method: 'put',
    data: data
  })
}

// 删除预警值设置
export function delEarly(warningId) {
  return request({
    url: '/xiaocui/early/' + warningId,
    method: 'delete'
  })
}
